{extends file='layout/admin.html'}

{block name='title'}个人信息添加{/block}

{block name='content'}


<h1>{if $type=='1'}二级{/if}关键词添加</h1>
<h2 class="pb10"></h2>
<div class="clearfix sub_nav b_border">
	<span class="btn fr"><a href="javascript://" class="save">保存</a></span>
</div>
<form action="admin/{if $type=='1'}filt_two_key{else}filt_key{/if}/insert" method="post" accept-charset="utf-8" id="submit_form">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="content_table">
	<thead>
		<tr style="height: 20px">
			<th class="left"></th>
			<th class="right"></th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td style="width: 30%" class="left_label large tar">{if $type=='1'}二级{/if}关键词</td>
			<td class="right_label"><input type="text" class="input_text w290" name="t_name" /></td>
		</tr>
		
	</tbody>
</table>
</form>
<div class="clearfix sub_nav t_border">
	<span class="btn fr"><a href="javascript://" class="save">保存</a></span>
</div>
<script type="text/javascript" charset="utf-8">
var key_name = $('input[name=t_name]');

dialog_title = 'My Account';


$('.save').click(function(){  
  if (!key_name.val()) {
    show_msg('关键词 不能为空!', function(){
      name.focus();
    });

    return false;
  }
  
  $('#submit_form').submit();

  return false;
});

</script>
{/block}
